<me:UIGABEW x:Class="WPFExcelReport.TXSGB14"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIGABEW.Resources>
        <CollectionViewSource  x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TRIMGB2312Convert8859P1 x:Key="tugb"/>
    </me:UIGABEW.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2">
            <WrapPanel Height="34">
                <Label Content="{Binding Source={Localization:Translate Word=入库日期从}}" Height="26" HorizontalAlignment="Left" Margin="5,5,0,0" Name="label1" VerticalAlignment="Top" Width="96" FontSize="16" />
                <DatePicker Height="25" HorizontalAlignment="Left" Margin="0,5,0,0" Name="FROM_DATE" VerticalAlignment="Top" Panel.ZIndex="1"
                                    SelectedDateChanged ="FROM_DATE_SelectedDateChanged" Width="127" /> 
                <Label Content="{Binding Source={Localization:Translate Word=任务书}}" Height="28" HorizontalAlignment="Left" Margin="5,5,0,0" Name="label3" VerticalAlignment="Top" Width="60" FontSize="16" />
                <TextBox Name="txtCO" Width="159" Margin="5,0,0,0"  HorizontalAlignment="Left" Background="WhiteSmoke" Panel.ZIndex="3"
                         Text="" CharacterCasing="Upper" MaxLength="8" FontSize="18" Foreground="#FF141111" Height="33" />
                <Button Content="{Binding Source={Localization:Translate Word=查询}}" Height="33" Margin="10,0,0,0"  Name="btnQuery" Width="71" Panel.ZIndex="6"
                         />
                <Button Content="{Binding Source={Localization:Translate Word=导出}}" Height="33" Margin="10,0,0,0"  Name="btnEXCEL" Width="72" Panel.ZIndex="7"
                        />
            </WrapPanel>
        </StackPanel>
        <DataGrid Grid.Row="1" Margin="0,1,0,0"    
                  FontSize="12"  
                              CanUserReorderColumns="True"  
                              CanUserResizeRows="True" CanUserSortColumns="True"                  
                              AutoGenerateColumns="False"   
                              EnableRowVirtualization="True" 
                              RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                              IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                              ItemsSource="{Binding}" x:Name="MasterDg" >
            <DataGrid.Columns>
                <!--CO	GABBUCHDAT	GABPARTIE	GABART	GABVAR	ART	GABFARBE	
                COLOR	GPFBPART	KG	QTY	GABSP	REMARK -->
                <DataGridTextColumn Header="入库日期" Binding="{Binding GABBUCHDAT}" Width="Auto"/>
                <DataGridTextColumn Header="任务书号" Binding="{Binding CO}" Width="Auto"/>
                <DataGridTextColumn Header="纱线编号" Binding="{Binding GABART}" Width="Auto"/>
                <DataGridTextColumn Header="色名" Binding="{Binding COLOR}" Width="Auto"/>
                <DataGridTextColumn Header="下锅数" Binding="{Binding QTY}" Width="Auto"/>
                <DataGridTextColumn Header="净重KG" Binding="{Binding KG}" Width="Auto"/>
                <DataGridTextColumn Header="筒子个数" Binding="{Binding GABSP}" Width="Auto"/>
                <DataGridTextColumn Header="纱名" Binding="{Binding ART}" Width="Auto"/>
                <DataGridTextColumn Header="色号" Binding="{Binding GABFARBE}" Width="Auto"/>
                <DataGridTextColumn Header="染批" Binding="{Binding GPFBPART}" Width="Auto"/>
                <DataGridTextColumn Header="批号/轴染信息" Binding="{Binding REMARK}" Width="Auto"/>
                <DataGridTextColumn Header="系统LOT" Binding="{Binding GABPARTIE}" Width="Auto"/>
                <DataGridTextColumn Header="变量" Binding="{Binding GABVAR}" Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:UIGABEW> 
 
